import type { CardListData, CardListParams } from "@/types/card";
import { request } from "@/utils/reuqest";

/**
 * 查看月卡信息列表
 * @param params 查询参数
 * @returns Promise
 */
export const getCardListAPI = (params: CardListParams) => {
  return request<CardListData>("/parking/card/list", "GET", params);
};

/**
 * 获取规则列表
 * @param { Object } params page、pageSize
 * @returns
 */
export const getRuleListAPI = (params: CardListParams) => {
  return request<CardListData>("parking/rule/list", "GET", params);
};
